import request from '@/utils/request'

export function getAward(data) {
  return request({
    url: '/api/Activate/GetAwardList',
    method: 'post',
    data: data
  })
}

export function saveAward(data) {
  return request({
    url: '/api/Activate/SaveAward',
    method: 'post',
    data: data
  })
}

export function delAward(data) {
  return request({
    url: '/api/Activate/DeleteAward',
    method: 'post',
    data: data
  })
}

export function toggleValidAward(data) {
  return request({
    url: '/api/Activate/ValidAward',
    method: 'post',
    data: data
  })
}
export function GetAwardById(data) {
  return request({
    url: '/api/Activate/GetAwardById',
    method: 'post',
    headers: {
      hideToast: true
    },
    data: data
  })
}
